package cn.edu.sgu.www.mhxysy.mapper.equipment;

import cn.edu.sgu.www.mhxysy.entity.equipment.EquipmentViewAttribute;
import cn.edu.sgu.www.mhxysy.entity.except.Property;
import cn.edu.sgu.www.mhxysy.vo.equipment.EquipmentViewAttributeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface EquipmentViewAttributeMapper extends BaseMapper<EquipmentViewAttribute> {

    /**
     * 查询装备的可选属性
     * @param type 装备类型
     * @return List<Property>
     */
    List<Property> selectProperty(@Param("type") Integer type);

    /**
     * 查询装备预览属性
     * @param equipmentId 装备类型ID
     * @param grade 装备等级
     * @return List<EquipmentViewAttributeVO>
     */
    List<EquipmentViewAttributeVO> selectViewAttributes(Integer equipmentId, Integer grade);
}